package com.action.admin;

import java.util.ArrayList;
import java.util.List;

import com.db.admin.AdminDAO;
import com.db.organization.JobVO;

public class AdminDeptListAction {
	private AdminDAO adminDAO;
	private List<JobVO> list = new ArrayList<JobVO>();
	
	public void setAdminDAO(AdminDAO adminDAO) {
		this.adminDAO = adminDAO;
	}

	public List<JobVO> getList() {
		return list;
	}

	public String execute() throws Exception {
		
		list = adminDAO.JobList();
	
		return "success";
	}
}
